home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************************/
- /* myClikLoop */
- /* */
- /* Note: executed repeatedly when the mouse is held down, and dragged outside of */
- /* the viewRect */
- /************************************************************************************/
- #include "myClickLoop.h"
- #include "Globals.h"
- #ifndef __C14__
- #include "PredatorPrey.h"
- #endif
- #include "myActionProc.h"
-
- void myClickLoopSeg() {}
-
- pascal Boolean myClikLoop()
- {
- int myClikRetCode;
- Point myMouseLoc;
- int vScrollAmt;
-
- myClikRetCode = TRUE;
-
- GetMouse (&myMouseLoc);
-
- GetClip(workRegionH); /* sve clip rgn */
- ClipRect(&(*windTbl[windSub].windPtr).portRect); /* reset it */
-
- if (myMouseLoc.v > (**windTbl[windSub].windTEH[0]).viewRect.bottom) /* down */
- myActionProc (windTbl[windSub].windCntlH[0], inDownButton);
- else
- if (myMouseLoc.v < (**windTbl[windSub].windTEH[0]).viewRect.top) /* up */
- myActionProc (windTbl[windSub].windCntlH[0], inUpButton);
-
- SetClip(workRegionH); /* restore clip */
-
- return myClikRetCode;
- }
-